//package com.zjx.bean;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.PostConstruct;
//import java.util.Map;
//import java.util.concurrent.ConcurrentHashMap;
//
//@Service
//public class FileFactory {
//	@Autowired
//	private static  Map<String ,IFileOperator> FILE_OPERATOR_MAP= new ConcurrentHashMap<>();
//
////	public FileFactory(Map<String ,IFileOperator> operatorMap){
////		 operatorMap.forEach((k,v) ->{
////		 	FILE_OPERATOR_MAP.put(k,v);
////		 });
////	}
//	// static 自动注入 利用setting方法也可以实现属性注入
////	@Autowired
////    public void setFileOperatorMap(Map<String ,IFileOperator> fileOperatorMap){
////    	  FileFactory.FILE_OPERATOR_MAP=fileOperatorMap;
////	}
//	public IFileOperator findNameByType(String name ){
//		return  FILE_OPERATOR_MAP.get(name);
//	}
//}
